diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-21 10:26:52 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-21 10:26:52 +0200 |
| commit | a977ef97cb1d88b617286fc07ea37a19c8b01e42 (patch) | |
| tree | 503bdb30f2be1b18c24ea8d0a2606f115becdf8f /templates/etc_jail.conf.d_[jailname].conf.j2 | |
| parent | 5ebb5cea738fdd2dcb057259c4235ccaa8d2cd15 (diff) | |
Improve ingress
Diffstat (limited to 'templates/etc_jail.conf.d_[jailname].conf.j2')
| -rw-r--r-- | templates/etc_jail.conf.d_[jailname].conf.j2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/etc_jail.conf.d_[jailname].conf.j2 b/templates/etc_jail.conf.d_[jailname].conf.j2 index 4c0bbc4..b4ed513 100644 --- a/templates/etc_jail.conf.d_[jailname].conf.j2 +++ b/templates/etc_jail.conf.d_[jailname].conf.j2 @@ -28,7 +28,6 @@ {% if ing.name == "ingress" -%} exec.poststart += "jexec ${name} route add default 192.168.2.{{ ing.num }} || echo 'Failed to add default route'"; exec.poststart += "jexec ${name} route add 10.6.210.0/24 192.168.0.1 || echo 'Failed to add Wireguard return route'"; - exec.poststart += "mount -t nullfs /usr/local/jails/containers/goaccess/var/www/goaccess /usr/local/jails/containers/ingress/mnt/www_goaccess" {% endif %} {% endfor %} {% else %} @@ -36,6 +35,7 @@ exec.poststart += "jexec ${name} ifconfig epw{{ jail.num }}b up"; exec.poststart += "ifconfig epw{{ jail.num }}a up"; exec.poststart += "jexec ${name} service dhclient restart epw{{ jail.num }}b"; + exec.poststart += "mount -t nullfs /usr/local/jails/containers/goaccess/var/www/goaccess /usr/local/jails/containers/ingress/mnt/www_goaccess"; {% endif %} exec.stop = "/bin/sh /etc/rc.shutdown"; @@ -43,6 +43,7 @@ exec.poststop += "ifconfig epl{{ jail.num }}a destroy"; {% if jail.name == "ingress" -%} exec.poststop += "ifconfig epw{{ jail.num }}a destroy"; + exec.poststop += "umount /usr/local/jails/containers/ingress/mnt/www_goaccess"; {% endif %} exec.consolelog = "/var/log/jail_console_${name}.log"; |
